# Maintainer: Orhun Parmaksız <orhun@archlinux.org>
# Contributor: noobping <hello@noobping.dev>

pkgname=alpine-chroot-install
pkgver=0.14.0
pkgrel=3
pkgdesc="Install Alpine Linux in chroot with a breeze"
arch=('any')
url="https://github.com/alpinelinux/alpine-chroot-install"
license=('MIT')
depends=('coreutils' 'sh')
optdepends=(
  'qemu-user: for emulation of different architecture'
  'qemu-user-binfmt-provider: for emulation of different architecture'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('b94f52ee7b96256c36a699e95c99c755061392d1d4ddfa62dc1fcd3acca024a636d90aa5cd6f886ea0757d4bc3110ebd8d50e61832b7c52b869edeb884b21046')

package() {
  cd "$pkgname-$pkgver"
  install -Dm 755 "$pkgname" -t "$pkgdir/usr/bin"
  install -Dm 644 README.adoc -t "$pkgdir/usr/share/doc/$pkgname"
  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

# vim:set ts=2 sw=2 et:
